.class Lcom/xingbook/audio/d/i;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/xingbook/audio/d/g;

.field private final synthetic b:Landroid/content/Context;


# direct methods
.method constructor <init>(Lcom/xingbook/audio/d/g;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    iput-object p2, p0, Lcom/xingbook/audio/d/i;->b:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v0}, Lcom/xingbook/audio/d/g;->c(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/b/b;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v0}, Lcom/xingbook/audio/d/g;->c(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/b/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/audio/b/b;->ag()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/xingbook/audio/d/i;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v1}, Lcom/xingbook/audio/d/g;->c(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/b/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v0}, Lcom/xingbook/audio/d/g;->d(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/d/l;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v1}, Lcom/xingbook/audio/d/g;->c(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/xingbook/audio/d/l;->b(Lcom/xingbook/audio/b/b;)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/audio/d/i;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v1}, Lcom/xingbook/audio/d/g;->c(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/b/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/audio/b/b;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->c(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v0}, Lcom/xingbook/audio/d/g;->d(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/d/l;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/audio/d/i;->a:Lcom/xingbook/audio/d/g;

    invoke-static {v1}, Lcom/xingbook/audio/d/g;->c(Lcom/xingbook/audio/d/g;)Lcom/xingbook/audio/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/xingbook/audio/d/l;->a(Lcom/xingbook/audio/b/b;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method
